package cn.wizzer.app.sys.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 收款银行卡
 */
@Data
@Table("sys_collect_bank")
public class SysCollectBank  extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;

    /**
     * 收款人姓名
     */
    @Column
    @Comment("收款人姓名")
    @ColDefine(type = ColType.VARCHAR, width = 16)
    private String name;

    /**
     * 银行卡号
     */
    @Column("card_no")
    @Comment("银行卡号")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String cardNo;

    /**
     * 所属银行
     */
    @Column("bank_name")
    @Comment("所属银行")
    @ColDefine(type = ColType.VARCHAR, width = 16)
    private String bankName;

    /**
     * 支行
     */
    @Column("sub_branch")
    @Comment("支行")
    @ColDefine(type = ColType.VARCHAR, width = 16)
    private String subBranch;

    @Column
    @Comment("是否禁用0否1是")
    @ColDefine(type = ColType.BOOLEAN)
    private boolean disabled;

}
